package org.hyl.javabase.多线程;
public class threadlock implements Runnable {
	private static int count = 0;
	private static Object lock = new Object();

	public void run() {
		// System.out.println(Thread.currentThread().getName() + " 线程运行开始!");
		synchronized (lock) {
			count += 10;
			System.out.println(Thread.currentThread().getName() + ".count=" + count);
		}
	}

}
